package cn.gzjp.modules.gas.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gzjp.common.persistence.Page;
import cn.gzjp.common.service.CrudService;
import cn.gzjp.modules.gas.entity.GasOrder;
import cn.gzjp.modules.gas.dao.GasOrderDao;

/**
 * 加油订单Service
 * @author zengcp
 * @version 2018-03-05
 */
@Service
@Transactional(readOnly = true)
public class GasOrderService extends CrudService<GasOrderDao, GasOrder> {

	public GasOrder get(String id) {
		return super.get(id);
	}
	
	public List<GasOrder> findList(GasOrder gasOrder) {
		return super.findList(gasOrder);
	}
	
	public Page<GasOrder> findPage(Page<GasOrder> page, GasOrder gasOrder) {
		return super.findPage(page, gasOrder);
	}
	
	@Transactional(readOnly = false)
	public void save(GasOrder gasOrder) {
		super.save(gasOrder);
	}
	
	@Transactional(readOnly = false)
	public void delete(GasOrder gasOrder) {
		super.deleteByLogic(gasOrder);
	}
	
}